package org.cloud.gateway;

import org.cloud.admin.auth.client.annotation.EnableAdminAuthClient;
import org.cloud.api.auth.client.annotation.EnableApiAuthClient;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Zuul的API网关服务功能
 * 
 * @author wangyuan
 * @since 2019年5月30日 下午9:39:46
 *
 */
@EnableZuulProxy // 开启API网关服务
@SpringCloudApplication //已开启eureka服务注册，hystrix服务
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableFeignClients(basePackages = "org.cloud")
@EnableApiAuthClient
@EnableAdminAuthClient
public class GatewayApplication {
	public static void main(String[] args) {
		SpringApplication.run(GatewayApplication.class, args);
	}
}
